package com.spider.gp.util;

import java.util.LinkedList;

public class MyQueue {

    private LinkedList<String> list = new LinkedList();

    public void put(String t){ //加入数据
        list.addFirst(t);
    }
    public String get(){ //取出先加入的数据
        return  list.removeLast();
    }
    public boolean isEmpt(){
        return  list.isEmpty();
    }

    public int getSize(){
        return  list.size();
    }

    public LinkedList<String> getAll(){ //取出先加入的数据
        return  list;
    }
}
